home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
TOT_2.ARJ
/
DEMO.EXE
/
arc
/
DEMBR3.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-02-11
|
802b
|
38 lines
Program DemoBrowseArrayThree;
{DEMBR3 - not you may need to execute this program from DOS since,
it uses over 300k of heap space to illustrate the speed of browsing
huge lists}
Uses DOS,CRT,
totFAST, totLINK, totLIST, totSTR;
var
BWin: BrowseLinkOBJ;
LL : StrDLLOBJ;
procedure CreateLinkedList;
{}
var
I, Retcode : integer;
begin
with LL do
begin
Init;
for I := 1 to 500 do
Retcode := Add('This is line '+IntToStr(I)+': '+replicate(200,char(random(255))));
end; {with}
end; {CreateLinkedList}
begin
Screen.Clear(white,'░'); {paint the screen}
CreateLinkedList;
with BWin do
begin
Init;
AssignList(LL);
Win^.SetTitle('List Browse Demo');
Go;
Done;
LL.Done;
end;
end.